//
//  NSString+Extend.h
//  GroupBuy
//
//  Created by wwj on 15/11/11.
//  Copyright © 2015年 wwj. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Extend)
/**
 *  生成一个保留fractionCount位小数的字符串(裁剪尾部多余的0)
 *
 */
+ (NSString *)stringWithDouble:(double)value fractionCount:(int)fractionCount;

/**
 *  获取文字尺寸
 *
 *  @param text text description
 *
 *  @return
 */
-(CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;
-(CGSize)sizeWithFont:(UIFont *)font;
@end
